from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

test=webdriver.Chrome()
test.get("https://passport.baidu.com/v2/?reg")
test.find_element(By.ID,"TANGRAM__PSP_4__userName").send_keys("lrysada")
sleep(3)
test.find_element(By.NAME,"phone").send_keys("12142554677")
#test.find_element(By.CSS_SELECTOR,".pass-text-input.pass-text-input-phone").send_keys("133220205689")
sleep(3)





# test.find_element(By.CSS_SELECTOR,".pass-text-input.pass-text-input-password").send_keys("dsasf1232344")

#test.find_element(By.NAME,"password").send_keys("dsasf1232344")
sleep(2)
test.find_element(By.XPATH,"//*[@id='TANGRAM__PSP_4__verifyCode']").send_keys("1234")
sleep(3)
test.find_element(By.CSS_SELECTOR,".pass-form-item.pass-form-item-isAgree > input").click()
sleep(3)
test.find_element(By.ID,"TANGRAM__PSP_4__submit").click()
sleep(3)
test.quit()